package com.gistmap.sideline.repository;

import com.gistmap.sideline.entity.Partner;
import com.gistmap.sideline.entity.Task;
import com.gistmap.sideline.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface PartnerRepository extends JpaRepository<Partner, Long> {

    List<Partner> findAllByTask(Task task);

    Partner findByUserAndTask(User user, Task task);
}
